function [xc,yc,zoomFactor] = smoothOutput(x,y,z,spanX, spanY, spanZ)
xc = smooth(x,spanX);
yc = smooth(y,spanY);
zoomFactor = smooth(z,spanZ);
end